Preparing Documents for Upload